<template>
  <div>
    <Header></Header>
    <router-view />
    <Footer v-if="isShow"></Footer>
  </div>
</template>
<script>
import Header from "./components/Header";
import Footer from "./components/Footer";


// import { requestMockList } from "@/api";
export default {
  name: "App",

  components: {
    Header,
    Footer,
  },

  computed: {
    isShow() {
      // console.log(this.$route);
      return this.$route.path !== "/register" && this.$route.path !== "/login";
    },
  },
};
</script>

<style lang="less">
html {
  // background-image: url("./haijing.jpg");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center -100px;
  background-attachment: fixed;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
body {
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #333333;
}
a {
  text-decoration: none;
  color: #333333;
}
a:hover {
  color: pink;
}
a:active {
  color: aliceblue;
}
</style>
